#include <iostream>
#include <cstdarg>
using namespace std;

int sum = 100;
int sum1(int count, ...)
{
    if (count <= 0)
    {
        return 0;
    }
    va_list arg_ptr;
    va_start(arg_ptr, count);
    int CountSum = 0;
    for (int i = 0; i < count; ++i)
    {
        CountSum += va_arg(arg_ptr, int);
    }
    va_end(arg_ptr);
    return CountSum;
}